import { defineStore } from 'pinia'


// 第一个参数是应用程序中 store 的唯一 id
export const useUsersStore = defineStore('user', {
    state: () => {
        return {
            keywords: "",
            needForceRefresh: false,
            newsSearchResultViewScrollPosition: 0,
            newsSearchResult: [{
                "id": "",
                "title": "",
                "passageContent": "",
                "postTime": "",
                "viewNum": "",
                "commentNum": ""
            }],
        };
    },
    actions: {
        changeKeywordsEvent() {
        },
    },
})